package com.jk.garden1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 访客管理
 */
@Data
@TableName("visitor_table")
@Document(indexName = "visitor",type = "doc")
public class VisitorEntity implements Serializable {
    @Id
    @Field(type = FieldType.Integer)
    @TableId(type = IdType.AUTO)
    private Integer visitorid;
    @Field(type = FieldType.Text)
    private String visitorname;//姓名
    @Field(type = FieldType.Text)
    private String visitorphone;//电话
    @Field(type = FieldType.Text)
    private String visitoridcard;//身份证号
    @Field(type = FieldType.Text)
    private String companyname;//公司名称;
    @Field(type = FieldType.Text)
    private String visitcause;// 访问事由
    @Field(type = FieldType.Text)
    private String intervieweename;  //被访人姓名
    @Field(type = FieldType.Text)
    private String intervieweephone;  //被访人电话
    @Field(type = FieldType.Text)
    private String carnum;//车牌号
    @Field(type = FieldType.Text)
    private String visitorsource;//来源（临时登记，微信预约）
    @Field(type = FieldType.Text)
    private String visitorstatus;//状态（正常，以拉黑）
    @Field(type = FieldType.Text)
    private String entrancedate;//进入时间


    @TableField(exist = false)
    private List<FollowPeopleEntity> followPeople;
}
